# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToAction do
  @moduledoc """
  Actions could take on this Publisher Model.

  ## Attributes

  *   `createApplication` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t`, *default:* `nil`) - Optional. Create application using the PublisherModel.
  *   `deploy` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionDeploy.t`, *default:* `nil`) - Optional. Deploy the PublisherModel to Vertex Endpoint.
  *   `deployGke` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke.t`, *default:* `nil`) - Optional. Deploy PublisherModel to Google Kubernetes Engine.
  *   `multiDeployVertex` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex.t`, *default:* `nil`) - Optional. Multiple setups to deploy the PublisherModel to Vertex Endpoint.
  *   `openEvaluationPipeline` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t`, *default:* `nil`) - Optional. Open evaluation pipeline of the PublisherModel.
  *   `openFineTuningPipeline` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t`, *default:* `nil`) - Optional. Open fine-tuning pipeline of the PublisherModel.
  *   `openFineTuningPipelines` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines.t`, *default:* `nil`) - Optional. Open fine-tuning pipelines of the PublisherModel.
  *   `openGenerationAiStudio` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t`, *default:* `nil`) - Optional. Open in Generation AI Studio.
  *   `openGenie` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t`, *default:* `nil`) - Optional. Open Genie / Playground.
  *   `openNotebook` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t`, *default:* `nil`) - Optional. Open notebook of the PublisherModel.
  *   `openNotebooks` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks.t`, *default:* `nil`) - Optional. Open notebooks of the PublisherModel.
  *   `openPromptTuningPipeline` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t`, *default:* `nil`) - Optional. Open prompt-tuning pipeline of the PublisherModel.
  *   `requestAccess` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t`, *default:* `nil`) - Optional. Request for access.
  *   `viewRestApi` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi.t`, *default:* `nil`) - Optional. To view Rest API docs.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :createApplication =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t()
            | nil,
          :deploy =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionDeploy.t()
            | nil,
          :deployGke =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke.t()
            | nil,
          :multiDeployVertex =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex.t()
            | nil,
          :openEvaluationPipeline =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t()
            | nil,
          :openFineTuningPipeline =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t()
            | nil,
          :openFineTuningPipelines =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines.t()
            | nil,
          :openGenerationAiStudio =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t()
            | nil,
          :openGenie =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t()
            | nil,
          :openNotebook =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t()
            | nil,
          :openNotebooks =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks.t()
            | nil,
          :openPromptTuningPipeline =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t()
            | nil,
          :requestAccess =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences.t()
            | nil,
          :viewRestApi =>
            GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi.t()
            | nil
        }

  field(:createApplication,
    as:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences
  )

  field(:deploy,
    as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionDeploy
  )

  field(:deployGke,
    as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke
  )

  field(:multiDeployVertex,
    as:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionDeployVertex
  )

  field(:openEvaluationPipeline,
    as:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences
  )

  field(:openFineTuningPipeline,
    as:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences
  )

  field(:openFineTuningPipelines,
    as:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines
  )

  field(:openGenerationAiStudio,
    as:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences
  )

  field(:openGenie,
    as:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences
  )

  field(:openNotebook,
    as:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences
  )

  field(:openNotebooks,
    as:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks
  )

  field(:openPromptTuningPipeline,
    as:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences
  )

  field(:requestAccess,
    as:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences
  )

  field(:viewRestApi,
    as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToActionViewRestApi
  )
end

defimpl Poison.Decoder,
  for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToAction do
  def decode(value, options) do
    GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToAction.decode(
      value,
      options
    )
  end
end

defimpl Poison.Encoder,
  for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PublisherModelCallToAction do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
